package com.yanyeori.webtest.service.impl;

import com.yanyeori.framework.core.model.WebResponse;
import com.yanyeori.nacosfeign.client.TestService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

/**
 * @author chenkuan
 * @version v1.0
 * @desc dubbo服务提供者
 * @date 2021/1/19 019 18:17
 */
@Slf4j
@Service
@DubboService
public class TestDubboServiceImpl implements TestService {

    @Override
    public WebResponse test() {
        log.info("dubbo getString 被调用");
        String str = "返回测试dubbo数据";
        return WebResponse.ok().data(str);
    }
}
